'use strict';
const {pagination} = require('pagination')
exports.main = async (event, context) => {
	//event为客户端上传的参数
	let params = {
		dbName: 'class_list',
		...event
	}
	let data = await pagination(params)
	let result = {
		code: 200,
		message: '请求成功',
		...data
	}
	//返回数据给客户端
	return result
};
